package nero.yncc.com.createart.custom;

import android.content.Context;
import android.util.AttributeSet;

import nero.yncc.com.createart.base.BaseApplication;


/**
 * Desc 字体图标控件
 * Created by  Administrator .
 * Time: 2016/9/27  16
 */

public class IconView extends android.support.v7.widget.AppCompatTextView {
    public IconView(Context context) {
        super(context);
        if (isInEditMode()) { return; }
        init();
    }


    public IconView(Context context, AttributeSet attrs) {
        super(context, attrs);
        if (isInEditMode()) { return; }
        init();
    }

    public IconView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        if (isInEditMode()) { return; }
        init();
    }

    private void init() {
        //设置字体图标
        this.setTypeface(BaseApplication.getInstance(). getIconTypeFace());
    }
}
